package com.farm.vo;

import com.farm.entity.GiftGoods;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GiftVO implements Serializable {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    //分类id
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long categoryId;

    //礼盒名称
    private String name;

    //礼盒价格
    private BigDecimal price;

    //状态 0:停用 1:启用
    private Integer status;

    //描述信息
    private String description;

    //图片
    private String image;

    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    //分类名称
    private String categoryName;

    //礼盒和商品的关联关系
    private List<GiftGoods> GiftGoods = new ArrayList<>();
}
